<template>
  <div class="gyj_box">
    <p class="gyj_top">约课记录</p>
    <van-divider />
    <van-tabs v-model="active">
      <van-tab title="待上课">
        <div class="gyj_aaa">
          <div class="gyj_first">
            <button @click="done">立即约课</button>
          </div>
        </div>
      </van-tab>
      <van-tab title="已上课">
        <div class="gyj_aaa">
          <div class="gyj_first">
            <button>立即约课</button>
          </div>
        </div>
      </van-tab>
      <van-tab title="已取消">
        <div class="gyj_aaa">
          <div class="gyj_first"></div>
        </div>
      </van-tab>
    </van-tabs>
  </div>
</template>
<script>

import { Tabs, Tab, Divider } from "vant";
export default {
  name:'sched1',
 components: {
    [Tabs.name]: Tabs,
    [Tab.name]: Tab,
    [Divider.name]:Divider
  },
  data() {
    return {
      active: 0
    };
  },
  created() {},
  mounted() {},
  computed: {},
  methods: {
    done() {
      this.$router.push("/class");
    }
  }
};
</script>
<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}

.gyj_box {
  background-color: #f0f0f0;
  width: 100vw;
  height: 100vh;
}
.gyj_top {
  height: 5vh;
  font-size: 16px;
  text-align: center;
//   margin-top: 10px;
  color: #333;
  background-color: #fff;
}
.gyj_aaa {
  height: 90vh;
}
.gyj_first {
  width: 100%;
  height: 100%;
  background-image: url(/images/1.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  button {
    width: 80px;
    height: 30px;
    font-size: 14px;
    background-color: red;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
  }
}
</style>
